/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ep1;

import java.util.Scanner;

/**
 *
 * @author Elizabeth.Bourke
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here

        BookStore bs = new BookStore();
        bs.setUpData();
        int option;

            do{
                Scanner input = new Scanner(System.in);

                System.out.println("1.  print list");
                System.out.println("2.  sort by ISBN");
                System.out.println("3.  sort by Title");
                System.out.println("0.  Exit");
                System.out.println("Enter Option:");

                option = input.nextInt();


                    switch(option){
                        case 0: break;
                        case 1:
                            bs.printAllBooks();
                            break;
                        case 2:
                           bs.sortByISBN();
                        break;
                         case 3:
                           bs.sortByTitle();
                        break;
                        default:
                            System.out.println("not a valid option");
                            break;
                    }
                }while(option!=0);
        }
    }


